@echo off

if "%~1" == "clean" goto clean

:build

pdflatex report.tex
pdflatex report.tex

exit /b

:clean

for %%a in (aux bbl bcf blg dvi log pdf ps toc run.xml) do (
    if exist *.%%a del *.%%a
)

exit /b